import {
	createApp
} from 'vue';
import App from './App.vue';
// import Vue from 'vue'

import {
	router
} from './router';

import {
	ConfigProvider
} from 'vant';
import {
	Tabbar,
	TabbarItem
} from 'vant';
import {
	Locale
} from 'vant';
// 引入英文语言包
import enUS from 'vant/es/locale/lang/en-US';
// import zhHK from 'vant/es/locale/lang/zh-HK';
// import '@/assets/font.css'
import footer_nav from '@/components/footer_nav.vue'; // 请根据你的项目结构修改路径
import top_bg from '@/components/top_bg.vue';
import axios from 'axios'
import VueAxios from 'vue-axios'

import VueCookies from 'vue-cookies'
import touch from 'vue-directive-touch';
import {botimInit} from './util.js'

botimInit()

const app = createApp(App);

app.use(router);

app.use(Tabbar);
app.use(TabbarItem);
app.use(ConfigProvider);
Locale.use('en-US', enUS);
app.use(VueAxios,axios);
app.use(VueCookies)
app.use(touch);

// Vue.prototype.$http = axios
// Vue.prototype.$axios = axios

// Locale.use('zh-HK', zhHK)

const host = "http://173games.com:1080/"
//const host = "https://d25k7zfz6k5r1z.cloudfront.net/http://3.29.235.26/"
//const host = "http://152.136.235.238:84/"
//const host = "http://192.168.1.13/"

const globalData = {
	base_url: host + 'yydb-server/',
	mobile_url: host + 'yydb-server/?/mobile/',
	member_url: host + 'yydb-server/?/member/',
	goods_url: host + 'yydb-server/?/goods/',
	// goods_base_url: 'yydb-server/?/goods/',
	uploads_url: host + 'yydb-server/statics/uploads/',
	cartlist_url: host + 'yydb-server/?/member/cart/cartlist/',
	add_cart_url: host + 'yydb-server/?/mobile/ajax/addShopCart/',
	del_cart_url: host + 'yydb-server/?/mobile/ajax/delCartItem/',
}


app.component('footer_nav', footer_nav)
	.component('top_bg', top_bg)

app.mount('#app');

export default globalData